package payroll25.trans;

import payroll25.PaymentClassification;
import payroll25.classification.CommissionedClassification;

public class AddCommissionedEmployeeTransaction extends AddEmployeeTransaction{

    private Double salary;
    private Double commissionRate;

    public AddCommissionedEmployeeTransaction(int empId, String name, String address, Double salary,
            Double commissionRate) {
        super(empId, name, address);
        this.salary = salary;
        this.commissionRate = commissionRate;
    }

    @Override
    protected PaymentClassification getPaymentClassification() {
        return new CommissionedClassification(salary,commissionRate);
    }
}
